package com.yzmoney.wechat.model.general;

//{"errcode":40013,"errmsg":"invalid appid"}
/**
 * 全局返回码
 * 
 * @author henson
 * 
 */
public class GeneralReturnCode {
	private String errcode;
	private String errmsg;

	private String msgid;
	private String id;
	private int type;

	public GeneralReturnCode() {
		super();
	}

	public GeneralReturnCode(String errcode, String errmsg, String msgid, String id,int type) {
		super();
		this.errcode = errcode;
		this.errmsg = errmsg;
		this.msgid = msgid;
		this.id = id;
		this.type=type;
	}

	public GeneralReturnCode(String errcode, String errmsg) {
		super();
		this.errcode = errcode;
		this.errmsg = errmsg;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getMsgid() {
		return msgid;
	}

	public void setMsgid(String msgid) {
		this.msgid = msgid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "GeneralReturnCode [errcode=" + errcode + ", errmsg=" + errmsg + ", msgid=" + msgid
				+ ",id=" + id +",type="+type+ "]";
	}

}
